package com.seven.good.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "orderPay")
public interface PayClient {

    @RequestMapping("/orders/test")
    public String test();

    @RequestMapping("/orders/createBondOrder")
    public String createBondOrder(
                           @RequestParam("gid")Integer gid, @RequestParam("uid") Integer uid,
                           @RequestParam("order_type")Integer order_type,@RequestParam("bond")Integer bond);
    @RequestMapping("/orders/createDealOrder")
    public Map createOrder(@RequestParam("gid")Integer gid, @RequestParam("uid") Integer uid,
                           @RequestParam("price")String price, @RequestParam("order_type")Integer order_type);

    @RequestMapping("/orders/refundOrder")
    public Map getRefundOrders(@RequestParam("gid")Integer gid, @RequestParam("order_type")Integer order_type,
                                @RequestParam("uid") Integer uid);

    @RequestMapping("/orders/queryOrderIfPay")
    public void queryDealOrderIfPay(@RequestParam("uid") Integer uid);

}
